﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraSplashScreen;
using DevExpress.ExpressApp.Win.Utils;

namespace Solution1.Module.Win.SplashScreen
{
    public partial class CustomXtraSplashForm : DevExpress.XtraSplashScreen.SplashScreen
    {
        public CustomXtraSplashForm()
        {
            InitializeComponent();
        }

        #region Overrides

        public override void ProcessCommand(Enum cmd, object arg)
        {

            base.ProcessCommand(cmd, arg);

            //Update Status text
            
            UpdateSplashCommand updateCommand = (UpdateSplashCommand)cmd;
            if (updateCommand == UpdateSplashCommand.Description)
            {
                string description = Convert.ToString(arg);
                labelControl2.Text = description;
            }
        }

        #endregion

        public enum SplashScreenCommand
        {
        }
    }
}